using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class forms_common_pwd : reportPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.initialize();
        base.ensureUserIsLoggedIn();

        user currentUser = user.Current;
        user_name_literal.Text = currentUser.getUserName() + " (" + currentUser.getFirstName() + " " + currentUser.getLastName() + ")";

        if (!String.IsNullOrEmpty(base.getString("password_change_submit")))
        {
            currentUser.SetPassword(base.getString("pwd1"));
            currentUser.Update();
            successMessageLiteral.Visible = !(pwdChangeTable.Visible = false);
        }

    }
}
